<template>
  <div>
    <button @click="toHome">toHome</button>
  </div>
</template>
<script setup>
import {useRoute,useRouter} from 'vue-router'
const route = useRoute()
const router = useRouter()
const toHome = (() =>{
  router.push({name:'home'})
})
</script>
<style></style>
